package com.wangp.springbootsource.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <pre>
 * classname TestLogController
 * description
 * </pre>
 *
 * @author wangpeng
 * @date 2020/10/26 17:52
 **/
@RestController
@Slf4j
public class TestLogController {


    @GetMapping("log/test")
    public String logTest() {
        log.debug("debug...");
        log.info("info...");
        log.warn("warn...");
        log.error("error...");
        return "OK";
    }
}
